Difference between revisions of "Template:Awaiting PR"

From Paradise Station Wiki
Jump to navigation Jump to search
(added the ability to just put PR number)
(more formatting)
Line 2: Line 2:
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<div style="background: #FF66DD; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>
<div style="background: #FF66DD; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>
'''This Section or Article is Awaiting a PR<br>Pull Request:''' [{{#if:{{{PRNumber|}}}|https://github.com/ParadiseSS13/Paradise/pull/{{{PRNumber}}}|{{{PRlink|https://github.com/ParadiseSS13/Paradise}}}}} {{{PRname|Paradise Github}}}] {{#if: {{{DraftPage|}}}|'''<br>Draft Page:''' {{{DraftPage}}} <br>|}}</center></div><div style="padding: 1em; background: #FFAAFF"><center>This content of this article may become outdated or is about to be outdated due to an ongoing Pull Request. If the pull request is merged or closed then this template should be removed and replace with [[Template:Needsrevision]] until the article is updated.</center></div></div>[[Category:Awaiting PR]]</includeonly>
'''This Section or Article is Awaiting a PR<br>Pull Request:''' [{{#if:{{{PRNumber|}}}|https://github.com/ParadiseSS13/Paradise/pull/{{{PRNumber}}}|{{{PRlink|https://github.com/ParadiseSS13/Paradise}}}}} {{{PRname|Paradise Github}}} {{#if:{{{PRNumber|}}}|{{{PRNumber}}}|}}] {{#if: {{{DraftPage|}}}|'''<br>Draft Page:''' {{{DraftPage}}} <br>|}}</center></div><div style="padding: 1em; background: #FFAAFF"><center>This content of this article may become outdated or is about to be outdated due to an ongoing Pull Request. If the pull request is merged or closed then this template should be removed and replace with [[Template:Needsrevision]] until the article is updated.</center></div></div>[[Category:Awaiting PR]]</includeonly>
<noinclude>
<noinclude>
{{Documentation
{{Documentation

Revision as of 09:57, 15 July 2021


float:left Template:Awaiting PR - Documentation [Edit] [History]

Implementation

{{Awaiting PR
| PRlink=
| PRname=
| DraftPage=
}}

Usage

If there is a PR that has been approved or is about to be merged then this template should be applied directly above the section/article in which the PR will change content. This should not be used for every PR. Make sure to link directly to the github conversation page for the PR.

Variables

PRlink = The full external link to the PR in its raw form
PRname = The title of the PR on the PR's github page
DraftPage = The internal page on the wiki in which a draft has been started to replace the section this template is being applied. Namespace is only needed for non mainspace articles


Example

Awaiting PR
| PRlink=https://github.com/ParadiseSS13/Paradise/pull/15291 
| PRname=Supermatter Update
| DraftPage=User:Sirryan2002

This Section or Article is Awaiting a PR
Pull Request:
Supermatter Update
Draft Page:
User:Sirryan2002
This content of this article may become outdated or is about to be outdated due to an ongoing Pull Request. If the pull request is merged or closed then this template should be removed and replace with Template:Needsrevision until the article is updated.

Example Pages


To implement your own Documentation on another template page or to understand how to use the Documentation template, please see Template:Documentation