Wikipedia:Portal: Difference between revisions
Content deleted Content added
→Existing Wikiportals: fill in EU details |
→How to create a new portal?: use new Portal: namespace |
||
Line 425:
To create a new portal on the topic "Topic" follow these steps:
1. Create a new portal at <nowiki>[[
<nowiki>{{subst:box portal skeleton| topic=Topic}}</nowiki>
Save.
2. Create two subpages:
a) [[
<nowiki>{{Wikipedia:Wikiportal/box-header | title={{{1}}}</nowiki>
Line 441:
Save.
and b) [[
<nowiki>{{Wikipedia:Wikiportal/box-footer | {{{1}}} }}</nowiki>
Save.
3. Return to your portal page [[
4. Place a link to your portal at the top of the appropriate article (of the same name) by placing a {{tl|portal}} there, or place {{tl|portalpar}} at other various pages. List your portal at {{tl|portals}} and {{tl|main portals}}
Line 456:
====Adding a section (box)====
If you wish to add a section (box) using the regular codes, go to your portal page (e.g. [http://en.wikipedia.org/w/index.php?title=
<pre>
Line 467:
* '''"1"''' is the box title
* '''"2"''' is the article to be linked to via [[Template:Ed2]]. This will appear right under the title bar. You may omit this parameter if you don't want an edit link to appear, but you must not omit the pipe, for example:
** <tt><nowiki>{{/box-header | Featured article |
** <tt><nowiki>{{/box-header | Featured article | }}</nowiki></tt> ''(no edit link param, note pipe still in place)''
* '''"3"''' is again the article to be linked to (this will appear as a red link until first edited), for example:
** <tt><nowiki>{{
* '''"4"''' is a link that you'd like to display at the bottom-right corner of the box. You may omit this parameter if you don't want an edit link to appear, but you must not omit the pipe, for example:
** <tt><nowiki>{{/box-footer | [[Computer and video games|More about Computer and video games...]]}}</nowiki></tt>
Line 480:
<nowiki><div style="float:right; width:50%;"></nowiki>
'''<nowiki>{{/box-header|A random title|
<nowiki>{{
'''<nowiki>{{/box-footer|[[Computer and video games|More about Computer and video games...]]}}</nowiki>'''
<nowiki></div></nowiki>
Line 488:
<div style="float:right; width:50%;">
{{
{{
{{
</div>
Line 516:
The exact same code, used at other portals, will create a box with the exact same content, but the colors may be completely different. This is because each portal has templates at:
# "[portal url]/box-header" (e.g. [http://en.wikipedia.org/w/index.php?title=
# "[portal url]/box-footer" (e.g. [http://en.wikipedia.org/w/index.php?title=
that add color information, and the pass all the work along to the [[:Wikipedia:Wikiportal/box-header]] and [[:Wikipedia:Wikiportal/box-footer]] templates, which compose everything into a standards-compliant and cross-browser box.
|