Wicipedia:Porth/Cyfarwyddiadau

Oddi ar Wicipedia
Neidio i: llywio, chwilio

Mae'r dudalen hon yn rhoi cyfarwyddiadau am greu pyrth newydd drwy ddefnyddio'r nodyn Nodyn:Templed porth.

Camau[golygu]

I greu porth newydd ynghylch y pwnc "Pwnc" drwy ddefnyddio'r {{Templed porth}}, dilynwch y camau hyn:

1. Crëwch dudalen newydd drwy ddefnyddio [[Porth:Pwnc]] fel teitl y dudalen (lle mai'r pwnc dan sylw yw "Pwnc") a rhoi'r testun hwn i mewn

{{subst:Templed porth}} Cadwch y dudalen

2. Crëwch dau is-dudalen, sgrolio i waelod y dudalen a chlicio'r ddolen i'r pennawd a throedyn
{{Nodyn:Box-header | title={{{1}}} 
|editpage={{{2}}} 
|border=#aaaaaa           <!-- This is the color of the borders around Box Sections -->
|titleforeground=white    <!-- This is the color of the Box Section Title Bar text -->
|titlebackground=#aaccff  <!-- This is the color of the Box Section Title Bar -->
|background=#f9f9ff       <!-- This is the color of the Box Section background -->
|foreground=black}}       <!-- This is the color of the Box Section text -->
{{Nodyn:Box-footer | {{{1}}} }}
3. Dychwelwch i'ch porth (Portal:Topic) a dechrau golygu (isod fe roddir cyfarwyddiadau cyffredin ar sut mae golygu pyrth). Dilynwch a llenwi'r dolenni cochion i greu'r is-dudalennau a fydd yn llenwi'r bylchau.
4. Gosodwch ddolen i'ch porth ar frig o erthygl addas (erthygl o'r un enw) gan osod {{porth}} yno. Os yw enw'r erthygl yn wahanol i enw'r porth, defnyddiwch {{porth|enw'r porth}}.

For an explanation of how and why this format works go here.

5. List your new portal in the Directory of portals.
6. Announce your new portal on the community bulletin board.
7. Update {{Number of portals}}
At this point, you have created a Portal under construction. It is a framework with a lot of red links where content should go. A fair amount of work is still necessary to turn a skeleton portal into one ready for browsing.
8. Edit the portal. (See Customisation and editing below for instructions.)
9. When the portal is complete and of good quality:

Customisation and editing[golygu]

The box portal allows you to edit the portal without editing the main portal page. Simply follow the blue links to the sub pages and enter the information there. These sub-pages will be displayed on the main page.

Adding a section (box)[golygu]

If you wish to add a section (box) using the regular codes, go to your portal page (e.g., [{{SERVER}}{{localurl:Portal:Computer and video games|action=edit}}]) and simply type in:

 {{/box-header| 1 | 2 }}
 {{   3   }}
 {{/box-footer| 4 }}

where

  • "1" is the box title
  • "2" is the article to be linked to.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:
    • {{/box-header | Selected article | Portal:Computer and video games/Selected}}
    • {{/box-header | Selected article | }} (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:
    • {{/Featured}}
  • "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:
    • {{/box-footer | [[Computer and video games|More about Computer and video games...]]}}
    • {{/box-footer | }} (no bottom-right param, note pipe still in place)

Other methods of adding a section[golygu]

Other methods of adding a section are adding Template:Random portal component or Template:Random portal component with nominate. see their documentation .

Example 1[golygu]

The following code:

<div style="float:right; width:50%;">
{{/box-header|A random title|Portal:Test/Selected article}}
{{/Selected article}}
{{/box-footer|[[Lorem ipsum|More about Lorem ipsum...]]}}
</div>

results in:

Nodyn:Portal:Test/box-header Nodyn:Portal:Test/Selected article Nodyn:Portal:Test/box-footer


Example 2[golygu]

The following code:

<div style="float:right; width:50%;">
{{/box-header|A random title|}}
   The following text will appear in the [[box]]. This text can be placed on 
    the [[Wikipedia:Portal|portals]] main page and edited there.Or, 
    alternatly placed on a sub-page of the portal, which is explained below.
{{/box-footer|[[Lorem ipsum|More about Lorem ipsum...]]}}
</div>

Nodyn:Portal:Test/box-header The following text will appear in the box. This text can be placed on the portals main page and edited there. Or, alternately placed on a sub-page of the portal, which is explained below. Nodyn:Portal:Test/box-footer

...will result in what is displayed to the immediate right.

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:

  1. "Portal:insertname/box-header" (e.g. [1])
  2. "Portal:insertname/box-footer" (e.g. [2])

that add color information, and the pass all the work along to the Portal:box-header and Portal:box-footer templates, which compose everything into a standards-compliant and cross-browser box.

Editing Archive for random portal component section[golygu]

For a random portal component section, the random pages are stored as consecutive numbered subpages from 1 to a maximum number. To view all numbered subpages in the archive page, use Template:Numbered subpages. Just write in the archive page {{Numbered subpages}}.

Randomized lists and elements in sections[golygu]

See the random subpage template for a method to display a list of randomly selected items from a group of numbered subpages (e.g., Sustainable development). This template also can be used to randomly rotate items such as images within a section (e.g., the Philosophy of science introduction).

Changing colors[golygu]

The colors of the portal can be changed in the box-header subpage. A list of colors you can use is available at Web colors, List of colors, or Wikipedia talk:Colours.

See also[golygu]

Beth yw Porth? Enghraifft o Borth (Criteria, Candidates) | List |

Cyfarwyddiadau i greu Porth | dros dro | Nodyn:Templed porth | dros dro eto | Categorïau