User:Polygnotus/Scripts/SourceTable: Difference between revisions

Content deleted Content added
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1:
This scripts adds a button next to the page title when editing AfD discussions. Pressing the button inserts a wikitable into the editor with one column listing the sources in the article, and another column where you can add comments.
{{Under construction}}
 
This scripts adds a button when editing AfD discussions. Pressing the button inserts a wikitable into the editor with one column listing the sources in the article, and another column where you can add comments.
 
{{Infobox user script
Line 8 ⟶ 6:
| author = [[User:Polygnotus|Polygnotus]]
| source = [[User:Polygnotus/Scripts/SourceTable.js]]
| screenshot = [[File:DuplicateReferencesSourceTable1.png|300px]]
}}
 
{{Image frame|content=[[File:SourceTable2.png]]|caption=The ___location of the button|align=none}}
[[File:DuplicateReferences.png|Duplicate References script]]
{{Image frame|content=[[File:SourceTable1.png]]|caption=A table generated by SourceTable|align=none}}
 
== Installation ==
First install [[User:Enterprisey/script-installer]], then come back to this page and click the giant blue "Install" button in the infobox on the right.
Line 19:
<syntaxhighlight lang="mediawiki">{{subst:iusc|User:Polygnotus/Scripts/SourceTable.js}}</syntaxhighlight>
 
=== TestingUsage ===
After each line containing a source is a line that contains only 2 vertical lines. Type your comments after those. Is the source [[WP:RELIABLE|reliable]]? [[WP:INDEPTH|in-depth]]? [[WP:INDEPENDENT|independent]]? et cetera.
You can test the script over at [[User:Polygnotus/DuplicateReferencesTest]].
 
=== Functionality ===
* Adds a button undernext to the page title when editing AfD discussions. Clicking the button adds a wikicode table to the editor
 
=== Limitations ===
* The sources on the actual article may be displayed in a different order than they occur in the wikicode.
* This script has not been tested with the Visual Editor