Difference between revisions of "Template:Hint to add yourself"
(modified hint_to_add_yourself to allow numeric lists as well) |
(more info on hint template) |
||
Line 1: | Line 1: | ||
− | Hint: add yourself by typing: | + | <includeonly>Hint: add yourself by typing: |
− | {{#ifeq: {{{1}}} | numeric | <pre># <nowiki> | + | {{#ifeq: {{{1}}} | numeric | <pre># <nowiki>[[User:Xopr|Xopr]]</nowiki></pre> | <pre>* <nowiki>[[User:Xopr|Xopr]]</nowiki></pre> }} |
− | <noinclude> | + | </includeonly><noinclude> |
This is the "Hint to add yourself" template. | This is the "Hint to add yourself" template. | ||
− | It | + | |
+ | You can add this to a wiki page to make sure people add themselves to the list (for example, attending or buying something together) | ||
+ | |||
+ | It can be called in two ways: | ||
<pre> | <pre> | ||
{{Hint to add yourself}} | {{Hint to add yourself}} | ||
</pre> | </pre> | ||
+ | Will give the following result: | ||
+ | <div style="border:2px dashed #ccc; margin: 0.5em; padding: 1em; width: 50%; display: inline-block;"> | ||
+ | * [[User:Xopr|Xopr]] | ||
+ | * some other user | ||
+ | |||
+ | {{Hint to add yourself}} | ||
+ | </div> | ||
+ | |||
+ | While: | ||
+ | <pre> | ||
+ | {{Hint to add yourself|numeric}} | ||
+ | </pre> | ||
+ | will give the hint for a numerical list: | ||
+ | |||
+ | <div style="border:2px dashed #ccc; margin: 0.5em; padding: 1em; width: 50%; display: inline-block;"> | ||
+ | # [[User:Xopr|Xopr]] | ||
+ | # some other user | ||
+ | |||
+ | {{Hint to add yourself|numeric}} | ||
+ | </div> | ||
+ | |||
Edit the page to see the template text. | Edit the page to see the template text. | ||
[[Category:Workaround templates|{{PAGENAME}}]]</noinclude> | [[Category:Workaround templates|{{PAGENAME}}]]</noinclude> |
Revision as of 18:54, 9 September 2014
This is the "Hint to add yourself" template.
You can add this to a wiki page to make sure people add themselves to the list (for example, attending or buying something together)
It can be called in two ways:
{{Hint to add yourself}}
Will give the following result:
While:
{{Hint to add yourself|numeric}}
will give the hint for a numerical list:
Edit the page to see the template text.