mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Clean up comments
Clarify where different keys come from and what they're used for. Change-Id: I534de4952c5b0e053dcba95f31c837547b4a68a6
This commit is contained in:
parent
b9c51b81a1
commit
3ec5a7c3e7
12
src/Cite.php
12
src/Cite.php
|
@ -389,9 +389,9 @@ class Cite {
|
|||
/**
|
||||
* Parse the arguments to the <ref> tag
|
||||
*
|
||||
* "name" : Key of the reference.
|
||||
* "name" : Name for reusing the reference.
|
||||
* "group" : Group to which it belongs. Needs to be passed to <references /> too.
|
||||
* "follow" : If the current reference is the continuation of another, key of that reference.
|
||||
* "follow" : If the current reference is the continuation of a named reference.
|
||||
* "dir" : set direction of text (ltr/rtl)
|
||||
* "extends": Points to a named reference which serves as the context for this reference.
|
||||
*
|
||||
|
@ -415,7 +415,7 @@ class Cite {
|
|||
}
|
||||
|
||||
if ( $argv === [] ) {
|
||||
// No key
|
||||
// No more attributes.
|
||||
return [ null, null, null, $dir, null ];
|
||||
}
|
||||
|
||||
|
@ -575,9 +575,9 @@ class Cite {
|
|||
* corrupting certain links.
|
||||
*
|
||||
* @param string $type
|
||||
* @param string|null $key
|
||||
* @param string|null $key The name attribute passed in the ref tag.
|
||||
* @param string $group
|
||||
* @param int $index
|
||||
* @param int $index Autoincrement counter for this ref.
|
||||
*/
|
||||
private function rollbackRef( $type, $key, $group, $index ) {
|
||||
if ( !isset( $this->mRefs[$group] ) ) {
|
||||
|
@ -744,7 +744,7 @@ class Cite {
|
|||
return '';
|
||||
}
|
||||
|
||||
// Add new lines between the list items (ref entires) to avoid confusing tidy (T15073).
|
||||
// Add new lines between the list items (ref entries) to avoid confusing tidy (T15073).
|
||||
// Note: This builds a string of wikitext, not html.
|
||||
$parserInput = "\n";
|
||||
foreach ( $this->mRefs[$group] as $key => $value ) {
|
||||
|
|
Loading…
Reference in a new issue