Topic on Project:Support desk

For Semantic Mediawiki, how can I make a query output text rendered as wikitext?

11
Summary by YousufSSyed

instead of doing == Header ==, I can do <h2>Header</h2>

YousufSSyed (talkcontribs)

For example, if I have a property value == Header ==, in a query, it shows up as an actual header.

MarkAHershberger (talkcontribs)
YousufSSyed (talkcontribs)

How do I ping them?

Kghbln (talkcontribs)

He pinged me. See here

YousufSSyed (talkcontribs)

That works but how can I make it appear as headers in a query such as {{#ask: Has text::+ | ?Has text}}?

Kghbln (talkcontribs)

Yes, I extended the example.

See also the docu (#show as a shortcut function)

YousufSSyed (talkcontribs)

This would be my query now: {{#ask: Has text::+ | ?Has text|mainlabel=- }}, while it does render wikitext, I still want the labels and the table rows. Do you know how to make it show I can get all of them? At least I want things in separate rows in wikitext, the labels aren't important.

Kghbln (talkcontribs)

Could you create an example on the sandbox wiki?! Currently I am not sure what you want to do. Thanks.

YousufSSyed (talkcontribs)
Kghbln (talkcontribs)

Thanks. You already got derailed by MediaWiki. If you do not create an new line MediaWiki will prevent the rendering. I suggest to use h2-tags instead of == to prevent this.

YousufSSyed (talkcontribs)

I tested that, as well are other formatting options to see if they would show up in a query, and they in fact does.