Difference between revisions of "Template:Hint to add yourself"

From Hackerspace ACKspace
Jump to: navigation, search
(add hint template for consistency)
 
m (..and broke it..)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Hint: add yourself by typing:
 
Hint: add yourself by typing:
  
# <nowiki>~~~</nowiki>
+
{{#ifeq: {{{1}}} | numeric | <pre># <nowiki>~~~</nowiki></pre> | <pre>* <nowiki>~~~</nowiki></pre> }}
 +
<noinclude>
 +
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:
 +
<pre>
 +
{{Hint to add yourself}}
 +
</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.
 +
 
 +
[[Category:Workaround templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 19:56, 9 September 2014

Hint: add yourself by typing:

* ~~~

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:

  • Xopr
  • some other user

Hint: add yourself by typing:

* ~~~

While:

{{Hint to add yourself|numeric}}

will give the hint for a numerical list:

  1. Xopr
  2. some other user

Hint: add yourself by typing:

# ~~~

Edit the page to see the template text.