Difference between revisions of "Template:Idhidden"

From Data JW United
Jump to navigation Jump to search
(Created page with "<noinclude> This template is used to give an id to an element. The element will be hidden. = Usage = {| class="wikitable" |- ! Code !! Example !! Result |- | <code><nowiki>{{r...")
 
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
| <code><nowiki>{{raw:data:id|actual text id|content}}</nowiki></code> || <code><nowiki>{{raw:data:id| nice subtitle|this is the content}}</nowiki></code> || <div style="width:400px;">{{id|nice subtitle|this is the content}} Note: in this case id is "actual_text_id".</div>
 
| <code><nowiki>{{raw:data:id|actual text id|content}}</nowiki></code> || <code><nowiki>{{raw:data:id| nice subtitle|this is the content}}</nowiki></code> || <div style="width:400px;">{{id|nice subtitle|this is the content}} Note: in this case id is "actual_text_id".</div>
 
|}
 
|}
 +
 +
= Another usage can be found here: =
 +
question 1: https://hu.jwunited.org/wiki/Oldal:Jehiva-gondvisel%C3%A9se-3-4-r%C3%A9sz-1937.djvu/3 <br>
 +
paragraph 1: https://hu.jwunited.org/wiki/Oldal:Jehova_gondvisel%C3%A9se-1-2-r%C3%A9sz-1937.djvu/11 <br>
 +
With the following example: <br>
 +
Question: <code><nowiki>{{q|1|id=q1x|Kire nézve ...?}}</nowiki></code> <br>
 +
Paragraph: <code><nowiki>{{p|1|1|id=q1x|{{raw:data:idhidden|paragraph1q1x|JEHOVA gondviselése ...}}}}</nowiki></code>
 +
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<div style="display:none" id="{{{1}}}">{{{2}}}</div>
+
<div style="height: 0px;width: 0px;overflow:hidden;display:inline;" id="{{{1}}}">{{{2}}}</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 17:28, 27 June 2022

This template is used to give an id to an element. The element will be hidden.

Usage

Code Example Result
{{raw:data:id|actual number id|content}} {{raw:data:id|123|content}}
this is the content
{{raw:data:id|actual text id|content}} {{raw:data:id| nice subtitle|this is the content}}
this is the content
Note: in this case id is "actual_text_id".

Another usage can be found here:

question 1: https://hu.jwunited.org/wiki/Oldal:Jehiva-gondvisel%C3%A9se-3-4-r%C3%A9sz-1937.djvu/3
paragraph 1: https://hu.jwunited.org/wiki/Oldal:Jehova_gondvisel%C3%A9se-1-2-r%C3%A9sz-1937.djvu/11
With the following example:
Question: {{q|1|id=q1x|Kire nézve ...?}}
Paragraph: {{p|1|1|id=q1x|{{raw:data:idhidden|paragraph1q1x|JEHOVA gondviselése ...}}}}