Difference between revisions of "User:Hananack/My Wiki Codes memo page"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(how to make some stuff from the edit page to not appear at the article)
 
(3 intermediate revisions by the same user not shown)
Line 27: Line 27:
 
==how to make some stuff from the edit page to not appear at the article==
 
==how to make some stuff from the edit page to not appear at the article==
 
add it between <nowiki><span style="display:none">text here</span></nowiki>
 
add it between <nowiki><span style="display:none">text here</span></nowiki>
for example on the article of [[Glowcap Mushrooms (3.5e Equipment)]] i wanted to add summary that will not show in article so i did it like this
+
for example on the article of [[Glowcap Mushrooms (3.5e Equipment)]] i wanted to add summary that will not show in article so i did it like this<br>
  <nowiki><span style="display:none"> [[Summary::A form of mushroom found growing underground in dungeons that can be used as spell enhancment component]]</span></nowiki>
+
  <nowiki><span style="display:none"> [[Summary::text here]]</span></nowiki>
  
 
==how to make references==
 
==how to make references==
Line 68: Line 68:
  
 
The section title in fact points to an anchor on the target page. It is possible to define anchors other than explicit section titles, using the HTML code <code><nowiki><span id="anchor_name">...</span></nowiki></code>, or the template <CODE><NOWIKI>{{Anchor|anchor name}}</NOWIKI></CODE> (see {{tl|Anchor}} syntax). However <code><nowiki>[[#top]]</nowiki></code> is a reserved name that links to the top of a page.
 
The section title in fact points to an anchor on the target page. It is possible to define anchors other than explicit section titles, using the HTML code <code><nowiki><span id="anchor_name">...</span></nowiki></code>, or the template <CODE><NOWIKI>{{Anchor|anchor name}}</NOWIKI></CODE> (see {{tl|Anchor}} syntax). However <code><nowiki>[[#top]]</nowiki></code> is a reserved name that links to the top of a page.
 +
 +
==text in a box==
 +
<nowiki><div style="border: 2px outset; padding: 1em;">
 +
{|class="{{d20}} collapsible hidden" style="width:75%; text-align:left;"
 +
|+ write your box name here
 +
|-
 +
| style="border: 0;" |
 +
add text here
 +
|}
 +
</div</nowiki>
 +
 +
'''[http://gettingtrickywithwikis.wikispaces.com/text+boxes Another way to make text in a box]'''
 +
 +
==upper text==
 +
to make text appear above use:
 +
<nowiki><sup>text here</sup></nowiki>

Latest revision as of 18:12, 22 January 2010

why do i need this page?[edit]

here ill memo the codes that i learned so i will not need to look for them all around.

the <nowiki></nowiki> Code[edit]

this code disables the wiki coding for everything between the <nowiki></nowiki> signs. its usable to show the needed codes within an article without actually using the code. to make it show the text in a white box i need to add one space before the first <nowiki>. for example:

 <nowiki>{{Stat Block 2
|summary=
|name=
|al= |size= |type=
|init= |listen= |spot=
|ac= |touch= |flat=
|hp= |hd=
|fort= |ref= |will=
|spd=
|bab= |grp=
}}</nowiki>

how to add summary[edit]

find a describing sentance it the text and add

[[Summary::text here]]

to add an unseen summary in the page

<span style="display:none"> [[Summary::text here]]</span>

dont forget the two:: after the word "Summary"
or

{{#set:Summary=text here}}.

how to make some stuff from the edit page to not appear at the article[edit]

add it between <span style="display:none">text here</span> for example on the article of Glowcap Mushrooms (3.5e Equipment) i wanted to add summary that will not show in article so i did it like this

<span style="display:none"> [[Summary::text here]]</span>

how to make references[edit]

after the word needed to add reference add <ref>"text here"</ref> the text here will be shown at the bottom of the page. remember to add <references/> at the place to show the references

how to add explanations at the edit page that will not be counted as wiki text and will not be shown in the article[edit]

write it between

<!-- text goes here -->

examle of "back to.. line"[edit]

Back to [[Main Page]] → [[Dungeons and Dragons]] → [[3.5e Equipment|Equipment]]

add an author template[edit]

{{author
|author_name=enter text here
|date_created=enter text here
|status=enter text here
|
}}

template of adding a table with summary by categories[edit]

for example this table will collect all articles with 3.5e, user, equipment, alchemical and mundane categories

{| class="sortable d20" style="text-align: left;"
! Name !! Summary
{{#ask: [[Category:3.5e]] [[Category:User]] [[Category:Equipment]] [[Category:Alchemical]] [[Category:Mundane]]
|?Summary
|format=template
|template=Table Row
|limit=9999
|link=none
}}
|}

how to make a link to some section in the same page or section in other page[edit]

To make a link to a section of a page, use the following syntax:

  • [[#B]] links to the section titled "B" on the current page (for example, #Wikilinks links to the Wikilinks section on this page).
  • [[A#B]] links to the section titled "B" on page "A".

The section title in fact points to an anchor on the target page. It is possible to define anchors other than explicit section titles, using the HTML code <span id="anchor_name">...</span>, or the template {{Anchor|anchor name}} (see {{Anchor}} syntax). However [[#top]] is a reserved name that links to the top of a page.

text in a box[edit]

<div style="border: 2px outset; padding: 1em;">
{|class="{{d20}} collapsible hidden" style="width:75%; text-align:left;"
|+ write your box name here
|-
| style="border: 0;" | 
add text here
|}
</div

Another way to make text in a box

upper text[edit]

to make text appear above use:

<sup>text here</sup>